<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="container">
			<!-- 会进行实时渲染，当falg为false时，页面源代码将不会渲染显示该行代码 -->
			v-if：<span v-if="flag">你好，世界：！！</span>
			
			<br>
			
			<!-- 只会更改style样式，设置为dispaly: none -->
			v-show：<span v-show="flag">你好，世界：！！</span>
		</div>
		<script type="text/javascript">
			var app = new Vue({
				el: "#container",
				data:{
					flag: true
				}
			})
		</script>
	</body>
</html>
